Skip to content

refactor: rename adapter package to linter and simplify concurrency#37

Merged
ikjeong merged 4 commits intomainfrom
refactor/linter
Dec 8, 2025
Merged

refactor: rename adapter package to linter and simplify concurrency#37
ikjeong merged 4 commits intomainfrom
refactor/linter

Conversation

@ikjeong
Copy link
Contributor

@ikjeong ikjeong commented Dec 8, 2025

Summary

  • adapter 패키지를 linter로 리네이밍하여 도메인 용어 명확화
  • Converter 인터페이스를 batch 처리에서 단일 규칙 처리로 변경하여 동시성 제어 중앙화
  • 3단계 중첩 동시성을 2단계 flat 구조로 단순화하여 예측 가능성 향상

Changes

  • internal/adapter/internal/linter/ 디렉토리 리네이밍
  • adapter.golinter.go 파일명 변경
  • ConvertRules()ConvertSingleRule() + BuildConfig() 인터페이스 분리
  • SingleRuleResult 타입 추가
  • helpers.go: JSON 응답 정리 헬퍼 함수 추가
  • registry.go: 전역 linter 레지스트리 추가
  • convertLinterRules() 제거, convertAllTasks() 추가 (flat 병렬 처리)
  • 동시성 CPU/2로 통일 (라우팅, 변환 모두)

- internal/adapter/ → internal/linter/
- adapter.go → linter.go
- ConvertRules() → ConvertSingleRule() + BuildConfig()
- Add SingleRuleResult type for single rule conversion
- Add helpers.go with CleanJSONResponse
- Add registry.go for global linter registry
- internal/cmd/convert.go
- internal/cmd/init.go
- internal/validator/validator.go
- tests/integration/*_test.go
- cmd/test-linter/main.go
- Remove nested linter-level parallelization
- Add convertAllTasks() for flat (linter, rule) pair processing
- Unify concurrency to CPU/2 for both routing and conversion
- Remove legacy ConvertRules/ConvertRulesParallel references
- Document ConvertSingleRule + BuildConfig pattern
- Add clear contribution guidelines
- Follow llm/README.md style
@ikjeong ikjeong self-assigned this Dec 8, 2025
@ikjeong ikjeong merged commit 1791de2 into main Dec 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant